<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link href="css/mui.min.css" rel="stylesheet" type="text/css">

		<script src="js/jquery-1.11.1.js"></script>

		<title>活动登记</title>
		<style>
			.list {
				width: 100%;
				margin-top: 30px
			}
			
			.list li {
				width: 80%;
				margin: 20px auto;
				height: 50px;
				line-height: 50px;
				text-align: center;
				background: #fff;
				list-style: none;
				box-shadow: 0 5px 10px #ccc;
				border-radius: 10px;
			}
			
			.list img {
				width: 30px;
				vertical-align: middle;
				margin-right: 10px
			}
		</style>
	</head>

	<body>

		<div class="mui-content">
			<div class="top" style="background:#F25745;padding:30px 0;margin:10px;box-shadow: 0 5px 10px #F25745;">
				<img src="img/logo-b.png" style="width:60%;display:block;margin:0 auto">
			</div>
			<div class="list">
				<li url="jpsz"><img src="img/1.png">奖品维护</li>
				<li url="hdjp"><img src="img/4.png">活动奖品</li>
				<li url="wdkc"><img src="img/2.png">库存管理</li>
			</div>
		</div>
		<script src="js/mui.min.js"></script>
		<script>
			$.post("selectUserByDdid", function(data) {
				/*alert(JSON.stringify(data))*/
				if(data.data.name != undefined) {
					var name = data.data.name;
					var deptId = data.data.deptId
					$(".list li").click(function() {
						var url = $(this).attr("url")
						if(url=="wdkc"){
							window.location.href = url
						}else{
							if(deptId=="19031293"||deptId=="117557566"||deptId=="3271720"){
								window.location.href = url
							}else{
								mui.alert("您没有该模块的操作权限")
								return
							}
							
							
						}
						
					})
				}
			})
		</script>
	</body>

</html>